package com.epfresh.bean;

public class Ad {
    private String img;
    private String link;
    private String title;
    private String imgPath;
    private String marketId;
    private String content;
    private HomeTop.SeckillBeanX.SeckillBean seckillContent;

    private int functionItem;
    private int positionNum;

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public int getPositionNum() {
        return positionNum;
    }

    public void setPositionNum(int positionNum) {
        this.positionNum = positionNum;
    }

    public HomeTop.SeckillBeanX.SeckillBean getSeckillContent() {
        return seckillContent;
    }

    public void setSeckillContent(HomeTop.SeckillBeanX.SeckillBean seckillContent) {
        this.seckillContent = seckillContent;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getFunctionItem() {
        return functionItem;
    }

    public void setFunctionItem(int functionItem) {
        this.functionItem = functionItem;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getMaketId() {
        return marketId;
    }

    public void setMaketId(String maketId) {
        this.marketId = maketId;
    }

    public String getImg() {
        return this.img == null ? this.imgPath:this.img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getLink() {
        return this.link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "Ad{" +
                "img='" + img + '\'' +
                ", link='" + link + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
